<?python
    from turbogears import identity
    from mnemoply import model
?>
<span xmlns:py="http://genshi.edgewall.org/">
    <table>
        <thead>
        <tr>
            <th>Teacher tariff</th>
            <th>Actions</th>
        </tr>
        </thead>

        <tbody>
        <tr py:for="pt in model.TeacherTariffPlan.selectBy(plan=obj)">
            <td><a href="/TeacherTariff/${pt.teacherTariff.id}/">${pt.teacherTariff.title}</a></td>
            <td>
                <span py:if="identity.has_any_permission('dba', 'Plan/edit')">
                    <a href="delete_teacher_tariff?ttp_id=${pt.id}">delete</a>
                </span>
            </td>
        </tr>
        </tbody>
    </table>

    <hr />

    <span py:if="identity.has_any_permission('dba', 'Plan/edit')">${ET(tab.add_form())}</span>
</span>
